home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / VIKINGW.DIR / 01654_Script_Town < prev    next >
Text File  |  1995-09-12  |  4KB  |  136 lines

  1. global gbeenclicked, gQuest
  2.  
  3. on VTownRollovers
  4.   set gbeenclicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(7) then
  7.       VikingCursor
  8.       repeat while rollover(7)
  9.         if (the mousedown) then
  10.           set gbeenclicked = 1
  11.         else
  12.           if gbeenclicked = 1 then
  13.             puppetsprite 7, true
  14.             puppetsound "SV220101.AIF"
  15.             updatestage
  16.             wait .5
  17.             set the locH of sprite 7 = -404
  18.             updatestage
  19.           end if
  20.         end if
  21.       end repeat
  22.     else
  23.       if rollover(8) then
  24.         ArrowCursor
  25.         repeat while rollover(8)
  26.           set the locH of sprite 9 to 407
  27.           set the locV of sprite 9 to 145
  28.           updatestage
  29.         end repeat
  30.         set the locH of sprite 9 to 999
  31.         updatestage
  32.       else
  33.         if rollover(10) then
  34.           ArrowCursor
  35.           repeat while rollover(10)
  36.             set the locH of sprite 11 to 553
  37.             set the locV of sprite 11 to 269
  38.             updatestage
  39.           end repeat
  40.           set the locH of sprite 11 to 999
  41.           updatestage
  42.         else
  43.           if rollover(12) then
  44.             ArrowCursor
  45.             resethouse
  46.             repeat while rollover(12)
  47.               set the locH of sprite 13 to 409
  48.               set the locV of sprite 13 to 259
  49.               updatestage
  50.             end repeat
  51.             set the locH of sprite 13 to 999
  52.             updatestage
  53.           else
  54.             if rollover(14) then
  55.               ArrowCursor
  56.               resethouse
  57.               repeat while rollover(14)
  58.                 set the locH of sprite 15 to 378
  59.                 set the locV of sprite 15 to 353
  60.                 updatestage
  61.               end repeat
  62.               set the locH of sprite 15 to 999
  63.               updatestage
  64.             else
  65.               if rollover(16) then
  66.                 ArrowCursor
  67.                 repeat while rollover(16)
  68.                   set the locH of sprite 17 to 193
  69.                   set the locV of sprite 17 to 380
  70.                   updatestage
  71.                 end repeat
  72.                 set the locH of sprite 17 to 999
  73.                 updatestage
  74.               else
  75.                 if rollover(18) then
  76.                   ArrowCursor
  77.                   repeat while rollover(18)
  78.                     set the locH of sprite 19 to 229
  79.                     set the locV of sprite 19 to 318
  80.                     updatestage
  81.                   end repeat
  82.                   set the locH of sprite 19 to 999
  83.                   updatestage
  84.                 else
  85.                   if rollover(20) then
  86.                     ArrowCursor
  87.                     resethouse
  88.                     repeat while rollover(20)
  89.                       set the locH of sprite 21 to 462
  90.                       set the locV of sprite 21 to 333
  91.                       updatestage
  92.                     end repeat
  93.                     set the locH of sprite 21 to 999
  94.                     updatestage
  95.                   else
  96.                     if rollover(26) then
  97.                       ArrowCursor
  98.                       repeat while rollover(26)
  99.                         set the locH of sprite 27 to 358
  100.                         set the locV of sprite 27 to 321
  101.                         updatestage
  102.                       end repeat
  103.                       set the locH of sprite 27 to 999
  104.                       updatestage
  105.                     else
  106.                       if rollover(41) then
  107.                         HandCursor
  108.                       else
  109.                         if rollover(42) then
  110.                           HandCursor
  111.                         else
  112.                           ArrowCursor
  113.                         end if
  114.                       end if
  115.                     end if
  116.                   end if
  117.                 end if
  118.               end if
  119.             end if
  120.           end if
  121.         end if
  122.       end if
  123.     end if
  124.   end if
  125.   RandomQuestion(gQuest)
  126. end
  127.  
  128. on resethouse
  129.   set the locV of sprite 7 = 304
  130.   set the locH of sprite 7 = 470
  131.   puppetsprite 7, false
  132.   updatestage
  133. end
  134.  
  135.  
  136.